<!DOCTYPE html>
<html>
<head lang="zh-cn">
    <link href="$!{__beat.server.contextPath}/bootstrap/datepicker/datepicker3.css" rel="stylesheet">
    <link rel="stylesheet" href="$!{__beat.server.contextPath}/bootstrap/css/App.css" type="text/css" />
    <link href="$!{__beat.server.contextPath}/bootstrap/css/bootstrap.min.css" rel="stylesheet">
     <link rel="stylesheet" href="$!{__beat.server.contextPath}/bootstrap/css/font-awesome.min.css" type="text/css" />   
    <link rel="stylesheet" type="text/css" href="$!{__beat.server.contextPath}/css/wnl.css">
    <meta charset="UTF-8">
    <title>城市首页数据看板</title>
<style type="text/css">
    .table>thead>tr>th, .table>tbody>tr>th, .table>tfoot>tr>th, .table>thead>tr>td, .table>tbody>tr>td, .table>tfoot>tr>td {
        padding: 4px 2px;
        font-size:10px;
        vertical-align: middle;      
    }
</style>
    <meta charset="UTF-8">
    <title>城市首页数据看板</title>
</head>
<body>
<div class="container-fluid">

    <div class="row" align="center" style="margin-bottom:8px; margin-top:5px;">
                <form class="form-inline" action="$!{__beat.server.contextPath}/homePage/income" method="get">
                        <div class="form-group" style="width:180px">
                            <label for="cityName" style="padding-left:15px;">城市：</label>
                            <select id="cityName" name="cityName" class="form-control">
                                 #foreach($c in $zhixiaoCityList)
                                    #if($velocityCount > 2)
                                    <option value="$c" #if("$!{cityName}" == "$c") selected #end>$c</option>
                                    #end
                                #end
                            </select>
                        </div>  
                        <div class="form-group" style="width:180px">
                            <label for="businessName" style="padding-left:15px;">业务线：</label>
                            <select id="businessName" name="businessName" class="form-control input-sm" style="align:center; width:100px; ">
                               #foreach($buss in $businessList)
                               #set($businessName_CN = $business_CN_Map.get("$buss"))
                                    <option value="$businessName_CN" #if("$!businessName" == "$!businessName_CN") selected #end>$businessName_CN</option>
                                #end
                            </select>
                        </div>  
                        <div class="form-group">                       
                               <input type="submit" value="查询" class="btn btn-primary btn-xs"> 
                        </div>
                </form>
    </div>

<!-- 余额客户结构  -->

        <div class="datacontent" id="qsContent">
            <div class="dataTit">
                <i class="mark"></i><span>$!{cityName}$!{businessName}余额客户结构</span>
            </div>
 
            <div class="dataShow">
                <div id='balanceOption' statType='day'>
                    <form class="form-inline">
                        <div  class="form-group input-group input-group-sm" style="width: 20%;float: left">
                            <span class="input-group-addon">
                                <input id="time_checkbox_balance" type="checkbox">
                            </span>
                            <input id="time_input_balance" type="text" class="form-control time" placeholder="添加对比" disabled>
                        </div>

                        <div class="form-group input-group-sm">
                            <label for="cate_balance">类别：</label>
                            <select id="cate_balance" class="form-control" style="width:120px;">
                                <option value="all">全部</option>
                                #foreach($c in $cateList)
                                    <option value="$c">$c</option>
                                #end
                            </select>
                        </div>

                        <div class="form-group input-group-sm">
                            <label for="userType_balance">用户类型：</label>
                            <select id="userType_balance" class="form-control  input-sm">              
                                <option value="2">全部</option>
                                <option value="1">会员</option>
                                <option value="0">非会员</option>
                            </select>
                        </div>
                        <div class="form-group" style="margin-left: 15px">
                            <label for="index_balance">指标：</label>
                            <input type="hidden" name="index_balance" id="index_balance" value="$!index_balance" />
                            <select multiple="multiple"  id="index_balance_mul" class="form-control  input-sm" style="width:150px;">              
                                <option value="balance_0" selected="selected">余额>0</option>
                                <option value="balance_50" selected="selected">余额>=50</option>
                                <option value="cash_balance_0" >现金余额>0</option>
                                <option value="user_num" >有账户客户</option>
                                <option value="cash_balance_50">现金余额>=50</option>
                            </select>  
                        </div>
                        <button id="refresh_balance_btn" type="button" class="btn btn-default form-control input-sm">刷新</button>
                        <div class="btn-group btn-group-sm btn-tab" style="float: right">
                            <button type="button" class="btn btn-default active btn_balance" statType='day'>日</button>
                            <button type="button" class="btn btn-default btn_balance" statType='week'>周</button>
                            <button type="button" class="btn btn-default btn_balance" statType='month'>月</button>
                        </div>
                    </form>
                </div>

                <div>
                    <div id="balanceCus" style="height:270px;"></div>
                    <div id="balanceOpenCus" style="height:270px;"></div>
                </div>

                <div class="panel-group accordion" id="accordion">
                    <div class="panel panel-default">
                            <div class="panel-heading">
                                <h4 class="panel-title">
                                    <a class="accordion-toggle" data-toggle="collapse" data-parent=".accordion" href="#collapse_balance">
                                    余额客户(点击展开) <span id="balanceTable_date"></span>
                                    </a>
                                </h4>
                            </div>
                            <div id="collapse_balance" class="panel-collapse collapse">
                                <div class="panel-body">
                                    <table class="table table-bordered" id="balanceTable">
                                        <thead>
                                          <tr>
                                            <th>类别</th>
                                            <th>有账户客户数</th>
                                            <th>余额>0</th>
                                            <th>环比</th>
                                            <th>现金余额>0</th>
                                            <th>环比</th>
                                            <th>余额>=50</th>
                                            <th>环比</th>
                                            <th>现金余额>=50</th>
                                            <th>环比</th>
                                            <th>精准</th>
                                            <th>环比</th>
                                            <th>置顶</th>
                                            <th>环比</th>
                                            <th>智能</th>
                                            <th>环比</th>
                                          </tr>
                                        </thead>

                                    </table>
                                </div>
                            </div>
                    </div>
                   
                </div>
            </div><!-- dataShow  -->
        </div> <!-- datacontent  -->
<!-- 余额客户结构部分结束 -->


<!-- 在线收入部分  -->

        <div class="datacontent" id="qsContent">
            <div class="dataTit">
                <i class="mark"></i><span>$!{cityName}$!{businessName} - 在线收入整体情况</span>
            </div>
 
            <div class="dataShow">
                <div id='incomeTotalOption' statType='day'>
                    <form class="form-inline">
                        <div  class="form-group input-group input-group-sm" style="width: 20%;float: left">
                            <span class="input-group-addon">
                                <input id="time_checkbox_incomeTotal" type="checkbox">
                            </span>
                            <input id="time_input_incomeTotal" type="text" class="form-control time" placeholder="添加对比" disabled>
                        </div>

                        <div class="form-group input-group-sm">
                            <label for="cate_incomeTotal">类别：</label>
                            <select id="cate_incomeTotal" class="form-control" style="width:120px;">
                                <option value="all">全部</option>
                                #foreach($c in $cateList)
                                    <option value="$c">$c</option>
                                #end
                            </select>
                        </div>

                        <div class="form-group input-group-sm">
                            <label for="userType_incomeTotal">用户类型：</label>
                            <select id="userType_incomeTotal" class="form-control  input-sm">              
                                <option value="2">全部</option>
                                <option value="1" selected="true">会员</option>
                                <option value="0">非会员</option>
                            </select>
                        </div>
                        <button id="refresh_incomeTotal_btn" type="button" class="btn btn-default form-control input-sm">刷新</button>
                        <div class="btn-group btn-group-sm btn-tab" style="float: right">
                            <button type="button" class="btn btn-default active btn_incomeTotal" statType='day'>日</button>
                            <button type="button" class="btn btn-default btn_incomeTotal" statType='week'>周</button>
                            <button type="button" class="btn btn-default btn_incomeTotal" statType='month'>月</button>
                        </div>
                    </form>
                </div>

                <div>
                    <div id="incomeTotal_cash" style="height:270px;"></div>
                    <div id="incomeTotal_user" style="height:270px;"></div>
                </div>

                <div class="panel-group accordion" id="accordion">
                    <div class="panel panel-default">
                            <div class="panel-heading">
                                <h4 class="panel-title">
                                    <a class="accordion-toggle" data-toggle="collapse" data-parent=".accordion" href="#collapse_incomeTotal">
                                    在线收入(点击展开) <span id="incomeTotalTable_date"></span>
                                    </a>
                                </h4>
                            </div>
                            <div id="collapse_incomeTotal" class="panel-collapse collapse">
                                <div class="panel-body">
                                    <table class="table table-bordered" id="incomeTotalTable">
                                        <thead>
                                          <tr>
                                            <th>类别</th>
                                            <th>精准现金</th>
                                            <th>环比</th>
                                            <th>精准客户数</th>
                                            <th>环比</th>
                                            <th>置顶现金</th>
                                            <th>环比</th>
                                            <th>置顶客户数</th>
                                            <th>环比</th>
                                          </tr>
                                        </thead>

                                    </table>
                                </div>
                            </div>
                    </div>
                   
                </div>
            </div><!-- dataShow  -->
        </div> <!-- datacontent  -->

<!-- 在线收入部分 结束  -->


<!-- 在线收入 流量 部分  -->
         <div class="datacontent" id="qsContent">
            <div class="dataTit">
                <i class="mark"></i><span>$!{cityName}$!{businessName} - 商业流量整体情况</span>
            </div>
 
            <div class="dataShow">
                <div id='incomeNetflowOption' statType='day'>
                    <form class="form-inline">
                        <div  class="form-group input-group input-group-sm" style="width: 20%;float: left">
                            <span class="input-group-addon">
                                <input id="time_checkbox_incomeNetflow" type="checkbox">
                            </span>
                            <input id="time_input_incomeNetflow" type="text" class="form-control time" placeholder="添加对比" disabled>
                        </div>

                        <div class="form-group input-group-sm">
                            <label for="cate_incomeNetflow">类别：</label>
                            <select id="cate_incomeNetflow" class="form-control" style="width:120px;">
                                <option value="all">全部</option>
                                #foreach($c in $cateList)
                                    <option value="$c">$c</option>
                                #end
                            </select>
                        </div>

                        <div class="form-group input-group-sm">
                            <label for="userType_incomeNetflow">产品类型：</label>
                            <select id="proType_incomeNetflow" class="form-control  input-sm">            
                                <option value="jingzhun" selected="selected">精准</option>
                                <option value="zhiding">置顶</option>
                            </select>
                        </div>

                        <div class="form-group" style="margin-left: 15px">
                            <label for="index_incomeNetflow">指标：</label>
                            <select id="index_incomeNetflow" class="form-control  input-sm" style="width:100px;">
                                #foreach($index in $indexList_EN)
                                    #set($i = $velocityCount - 1)
                                    <option value="$index">$indexList_CN.get($i)</option>
                                #end
                            </select>
                        </div>
                        <button id="refresh_incomeNetflow_btn" type="button" class="btn btn-default form-control input-sm">刷新</button>
                        <div class="btn-group btn-group-sm btn-tab" style="float: right">
                            <button type="button" class="btn btn-default active btn_incomeNetflow" statType='day'>日</button>
                            <button type="button" class="btn btn-default btn_incomeNetflow" statType='week'>周</button>
                            <button type="button" class="btn btn-default btn_incomeNetflow" statType='month'>月</button>
                        </div>
                    </form>
                </div>

                <div>
                    <div id="incomeNetflow_chart" style="height:270px;"></div>                    
                </div>

                <div class="panel-group accordion" id="accordion">
                    <div class="panel panel-default">
                            <div class="panel-heading">
                                <h4 class="panel-title">
                                    <a class="accordion-toggle" data-toggle="collapse" data-parent=".accordion" href="#collapse_incomeNetflow">
                                    商业流量(点击展开) <span id="incomeNetflowTable_date"></span>
                                    </a>
                                </h4>
                            </div>
                            <div id="collapse_incomeNetflow" class="panel-collapse collapse">
                                <div class="panel-body">
                                    <table class="table table-bordered" id="incomeNetflowTable">
                                        <thead>
                                          <tr>
                                            <th>类别</th>
                                            <th>总消费</th>
                                            <th>环比</th>
                                            <th>PV</th>
                                            <th>环比</th>
                                            <th>ADPV</th>
                                            <th>环比</th>
                                            <th>PVR</th>
                                            <th>环比</th>
                                            <th>展现</th>
                                            <th>环比</th>
                                            <th>点击</th>
                                            <th>环比</th>
                                            <th>ASN</th>
                                            <th>环比</th>
                                            <th>ACP</th>
                                            <th>环比</th>
                                            <th>CTR2</th>
                                            <th>环比</th>
                                          </tr>
                                        </thead>
                                    </table>
                                </div>
                            </div>
                    </div>
                   
                </div>
            </div><!-- dataShow  -->
        </div> <!-- datacontent  -->                

<!-- 在线流量部分  end  -->


<!-- 展现消耗客户数 部分  -->
         <div class="datacontent" id="qsContent">
            <div class="dataTit">
                <i class="mark"></i><span>$!{cityName}$!{businessName} -展现消耗客户数</span>
            </div>
 
            <div class="dataShow">
                <div id='costUserOption' statType='day'>
                    <form class="form-inline">
                        <div  class="form-group input-group input-group-sm" style="width: 20%;float: left">
                            <span class="input-group-addon">
                                <input id="time_checkbox_costUser" type="checkbox">
                            </span>
                            <input id="time_input_costUser" type="text" class="form-control time" placeholder="添加对比" disabled>
                        </div>

                        <div class="form-group input-group-sm">
                            <label for="cate_costUser">类别：</label>
                            <select id="cate_costUser" class="form-control" style="width:120px;">
                                <option value="all">全部</option>
                                #foreach($c in $cateList)
                                    <option value="$c">$c</option>
                                #end
                            </select>
                        </div>

                        <div class="form-group input-group-sm">
                            <label for="userType_costUser">用户类型：</label>
                            <select id="userType_costUser" class="form-control  input-sm">              
                                <option value="2">全部</option>
                                <option value="1" selected="true">会员</option>
                                <option value="0">非会员</option>
                            </select>
                        </div>

                        <div class="form-group input-group-sm">
                            <label for="proType_costUser">产品线：</label>
                            <select id="proType_costUser" class="form-control  input-sm">            
                                <option value="jz" selected="selected">精准</option>
                                <option value="zd">置顶</option>
                            </select>
                        </div>

                        <button id="refresh_costUser_btn" type="button" class="btn btn-default form-control input-sm">刷新</button>
                        <div class="btn-group btn-group-sm btn-tab" style="float: right">
                            <button type="button" class="btn btn-default active btn_costUser" statType='day'>日</button>
                            <button type="button" class="btn btn-default btn_costUser" statType='week'>周</button>
                            <button type="button" class="btn btn-default btn_costUser" statType='month'>月</button>
                        </div>
                    </form>
                </div>

                <div>
                    <div id="costUser_chart" style="height:270px;"></div>                    
                </div>

                <div class="panel-group accordion" id="accordion">
                    <div class="panel panel-default">
                            <div class="panel-heading">
                                <h4 class="panel-title">
                                    <a class="accordion-toggle" data-toggle="collapse" data-parent=".accordion" href="#collapse_costUser">
                                    余额客户(点击展开) <span id="costUserTable_date"></span>
                                    </a>
                                </h4>
                            </div>
                            <div id="collapse_costUser" class="panel-collapse collapse">
                                <div class="panel-body">
                                    <table class="table table-bordered" id="costUserTable">
                                        <thead>
                                          <tr>
                                            <th>类别</th>
                                            <th>精准现金</th>
                                            <th>环比</th>
                                            <th>精准展现客户数</th>
                                            <th>环比</th>                                            
                                            <th>精准消耗客户数</th>
                                            <th>环比</th>
                                            <th>置顶现金</th>
                                            <th>环比</th>
                                            <th>置顶展现客户数</th>
                                            <th>环比</th>                                            
                                            <th>置顶消耗客户数</th>
                                            <th>环比</th>
                                          </tr>
                                        </thead>
                                    </table>
                                </div>
                            </div>
                    </div>
                   
                </div>
            </div><!-- dataShow  -->
        </div> <!-- datacontent  -->                

<!-- 展现消耗客户数  end  -->


 <!-- 新增流失客户部分 -->
  <div class="datacontent" id="qsContent">
            <div class="dataTit">
                <i class="mark"></i><span>$!{cityName}$!{businessName} -新增流失客户数</span>
            </div>
 
            <div class="dataShow">
                <div id='addLossUserOption' statType='week'>
                    <form class="form-inline">

                        <div class="form-group input-group-sm">
                            <label for="cate_addLossUser">类别：</label>
                            <select id="cate_addLossUser" class="form-control" style="width:120px;">
                                <option value="all">全部</option>
                                #foreach($c in $cateList)
                                    <option value="$c">$c</option>
                                #end
                            </select>
                        </div>

                        <div class="form-group input-group-sm">
                            <label for="vipType_addLossUser">用户类型：</label>
                            <select id="vipType_addLossUser" class="form-control  input-sm">              
                                <option value="2">全部</option>
                                <option value="1" selected="true">会员</option>
                                <option value="0">非会员</option>
                            </select>
                        </div>

                        <div class="form-group input-group-sm">
                            <label for="proType_addLossUser">产品线：</label>
                            <select id="proType_addLossUser" class="form-control  input-sm">            
                                <option value="jingzhun" selected="selected">精准</option>
                                <option value="zhiding">置顶</option>
                                <option value="zhineng">智能</option>
                            </select>
                        </div>

                        <button id="refresh_addLossUser_btn" type="button" class="btn btn-default form-control input-sm">刷新</button>
                        <div class="btn-group btn-group-sm btn-tab" role="group" aria-label="Basic example"  style="float: right">
                            <button type="button" class="btn btn-default active btn_addLossUser" statType='week'>周</button>
                            <button type="button" class="btn btn-default btn_addLossUser" statType='month'>月</button>
                        </div> 
                    </form>              
                </div>
                
                <div id="addLossUser_num" style="height:270px"></div>
                <div id="addLossUser_arpu" style="height:270px"></div>
            </div>

                <div class="panel-group accordion" id="accordion">
                    <div class="panel panel-default">
                            <div class="panel-heading">
                                <h4 class="panel-title">
                                    <a class="accordion-toggle" data-toggle="collapse" data-parent=".accordion" href="#collapse_addLossUser">
                                    新增客户明细(点击展开) <span id="addLossUserTable_date"></span>
                                    </a>
                                </h4>
                            </div>
                            <div id="collapse_addLossUser" class="panel-collapse collapse">
                                <div class="panel-body">
                                    <table class="table table-bordered" id="addLossUserTable">
                                        <thead>
                                          <tr>
                                            <th>产品线</th>
                                            <th>新增客户数</th>
                                            <th>环比</th>
                                            <th>新增客户ARPU</th>
                                            <th>环比</th>
                                            <th>存留客户数</th>
                                            <th>环比</th>
                                            <th>存留客户ARPU</th>
                                            <th>环比</th>
                                            <th>流失客户数</th>
                                            <th>环比</th>
                                            <th>流失客户ARPU</th>
                                            <th>环比</th>
                                          </tr>
                                        </thead>
                                    </table>
                                </div>
                            </div>
                    </div>
                   
                </div> 

        </div>

<!--新增流失客户部分  end  -->


<!-- 精准置顶状态转换客户部分 -->
  <div class="datacontent" id="qsContent">
            <div class="dataTit">
                <i class="mark"></i><span>$!{cityName}$!{businessName} -精准置顶状态转换客户数</span>
            </div>
 
            <div class="dataShow">
                <div id='transferUserOption' statType='week'>
                    <form class="form-inline">

                        <div class="form-group input-group-sm">
                            <label for="cate_transferUser">类别：</label>
                            <select id="cate_transferUser" class="form-control" style="width:120px;">
                                <option value="all">全部</option>
                                #foreach($c in $cateList)
                                    <option value="$c">$c</option>
                                #end
                            </select>
                        </div>

                        <div class="form-group input-group-sm">
                            <label for="vipType_transferUser">用户类型：</label>
                            <select id="vipType_transferUser" class="form-control  input-sm">              
                                <option value="2">全部</option>
                                <option value="1" selected="true">会员</option>
                                <option value="0">非会员</option>
                            </select>
                        </div>

                        <div class="form-group input-group-sm">
                            <label for="proType_transferUser">产品线：</label>
                            <select id="proType_transferUser" class="form-control  input-sm">            
                                <option value="jingzhun" selected="selected">精准</option>
                                <option value="zhiding">置顶</option>
                            </select>
                        </div>

                        <button id="refresh_transferUser_btn" type="button" class="btn btn-default form-control input-sm">刷新</button>
                        <div class="btn-group btn-group-sm btn-tab" role="group" aria-label="Basic example"  style="float: right">
                            <button type="button" class="btn btn-default active btn_transferUser" statType='week'>周</button>
                            <button type="button" class="btn btn-default btn_transferUser" statType='month'>月</button>
                        </div> 
                    </form>              
                </div>
                
                <div id="transferUser_chart" style="height:270px"></div>
            </div>

                <div class="panel-group accordion" id="accordion">
                    <div class="panel panel-default">
                            <div class="panel-heading">
                                <h4 class="panel-title">
                                    <a class="accordion-toggle" data-toggle="collapse" data-parent=".accordion" href="#collapse_transfer">
                                    状态转换客户明细(点击展开) <span id="transferUserTable_date"></span>
                                    </a>
                                </h4>
                            </div>
                            <div id="collapse_transfer" class="panel-collapse collapse">
                                <div class="panel-body">
                                    <table class="table table-bordered" id="transferUserTable">
                                        <thead>
                                          <tr>
                                            <th>产品线</th>
                                            <th>TO精准</th>                                         
                                            <th>环比</th>
                                            <th>TO置顶</th>                            
                                            <th>环比</th>
                                            <th>流失</th>                                           
                                            <th>环比</th>
                                          </tr>
                                        </thead>
                                    </table>
                                </div>
                            </div>
                    </div>
                   
                </div> 

        </div>

<!--精准置顶状态转换客户部分  end  -->


</div>
</body>
<script src="$!{__beat.server.contextPath}/bootstrap/jquery.js"></script>
<link rel="stylesheet" href="$!{__beat.server.contextPath}/bootstrap/libs/jquery-ui/jquery-ui-1.9.2.custom.css" type="text/css" /> 
<link type="text/css" href="$!{__beat.server.contextPath}/bootstrap/libs/jquery-ui/jquery.multiselect.css" rel="stylesheet" />
<script src="$!{__beat.server.contextPath}/bootstrap/libs/jquery-ui/jquery-ui-1.9.2.custom.min.js"></script>
<script type="text/javascript" src="$!{__beat.server.contextPath}/bootstrap/libs/jquery-ui/jquery.multiselect.js"></script>

<script src="$!{__beat.server.contextPath}/bootstrap/js/libs/bootstrap.js"></script>
<script src="$!{__beat.server.contextPath}/bootstrap/datepicker/bootstrap-datepicker.js"></script>
<script src="$!{__beat.server.contextPath}/bootstrap/datepicker/nongLiDate.js"></script>
<script src="$!{__beat.server.contextPath}/bootstrap/datepicker/locales/bootstrap-datepicker.zh-CN.js"></script>
<script src="$!{__beat.server.contextPath}/echarts2/dist/echarts.js"></script>
<script src="$!{__beat.server.contextPath}/bootstrap/js/App.js"></script>
<script src="$!{__beat.server.contextPath}/js/common/chart-util.js"></script>
<script type="text/javascript">
 
    function changeDateGrp(item){
        var stat_type = $(item).attr('statType');
        var curDiv = $(item).closest('div[statType]');
        $(curDiv).attr('statType',stat_type);
    }

    function changeIndex(item){
        var indexVal = $(item).val();
        var curDiv = $(item).closest('div[statType]');
        $(curDiv).attr('indexType',indexVal);
    }

    $('.btn-tab button').click(function(e){
        $(this).addClass('active');
        $(this).siblings('button').each(function(){
            $(this).removeClass('active');
        });
    });
   
 
    // 路径配置
    require.config({paths: {echarts: "$!{__beat.server.contextPath}/echarts2/dist",dashboard: "$!{__beat.server.contextPath}/js/homePage"}});
    
    var charts = [];

    require(['dashboard/balance_v2'],function(balanceEC){
        charts.push(balanceEC);
        balanceEC.show(2);
    });    

    require(['dashboard/income_v1'],function(incomeEC){
        charts.push(incomeEC);
        incomeEC.show(2);
    });

    require(['dashboard/income_platform_v2'],function(platformEC){
        charts.push(platformEC);
        platformEC.show(2);
    });

    require(['dashboard/costUser_v1'],function(costUserEC){
        charts.push(costUserEC);
        costUserEC.show(2);
    });

    //新增流失客户
    require(['dashboard/addLossUser_v1'],function(addLossUserEC){
        charts.push(addLossUserEC);
        addLossUserEC.show(2);
    });


    //精准置顶状态转换客户部分
    require(['dashboard/transferUser_v1'],function(transferUserEC){
        charts.push(transferUserEC);
        transferUserEC.show(2);
    });

    $(window).resize(function(){
        $.each(charts,function(i,n){
            n.resize();
        });
    });


</script>
</html>